﻿<!doctype html>
@using HP.HPTRIM.Service;
@using HP.HPTRIM.ServiceModel;
@using HP.HPTRIM.WebDrawer;
@using ServiceStack.ServiceInterface;
@functions {


    public string GetTitle()
    {
        string title = ViewBag.Title;
        if (title == null)
        {
            if (HttpContext.Current.Request.QueryString["q"] != null)
            {
                title = Translations.lang.search_results;

            }
            else if (this.Model.Results != null && this.Model.Results.Count == 1)
            {
                title = this.Model.Results[0].NameString;
            }
            else
            {
                title = Translations.lang.record_search;
            }
        }

        return string.Format(Translations.lang.webdrawer, title);
    }

}

<html>
<head>
    <meta charset="UTF-8">
    <title>@GetTitle()</title>
    <link href="~/scripts/bootstrap/css/bootstrap.min.css" type="text/css" rel="stylesheet" />
    <link href="~/css/webdrawer.css" type="text/css" rel="stylesheet" />

    @("<!--[if lt IE 9]>".AsRaw())
    <link rel="stylesheet" type="text/css" href="~/css/webdrawer_ie8.css" />
    @("<![endif]-->".AsRaw())

    @RenderSection("customhead")
</head>
<body class="no-image">
    <div id="maincontainer">
        <div class="dropdown pull-right" style="margin: 10px 10px 0 0;">
            @*This will navigate to the WebDrawer home.  If the signing is called from some other application
            this should probably navigate back there.  Maybe we need something in appSettings.*@
            <a target="_top" class="btn" href="~/">Close</a>

        </div>
        <div id="contentwrapper">

            <div id="contentcolumn">
                @RenderBody()
            </div>

        </div>
    </div>
</body>
</html>

